﻿@model IEnumerable<MvcBJDCWebApp.Models.APIRace>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.APIKey)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.saicheng)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c4T1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c4T1URL)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c4R)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c4T2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c4T2URL)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c51)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c51Link)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c52)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.c52Link)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.liveid)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.APIKey)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.saicheng)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c4T1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c4T1URL)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c4R)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c4T2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c4T2URL)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c51)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c51Link)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c52)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.c52Link)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.liveid)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.APIRaceID }) |
            @Html.ActionLink("Details", "Details", new { id=item.APIRaceID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.APIRaceID })
        </td>
    </tr>
}

</table>
